package com.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("ftl")
public class FreemarkerController {

    @RequestMapping("freemarker")
    public String ftl(Model model) {
        model.addAttribute("message","freemarker模板引擎");
        return "user";
    }
}
